home *** CD-ROM | disk | FTP | other *** search
Wrap
OS/2 INI File | 1996-03-27 | 12.6 KB | 379 lines
RxMath/ Deregister RxMAthFn rc = MathDropFuncs() cos(x) sin(x) tan(x) acos(x) asin(x)B atan(x)f cosh(x) sinh(x) tanh(x) ceil(x) floor floor(x) exp(x)< log(x)b log10 log10(x) sqrt(x) pow(x,y) Load RxMathFn rc = RxFuncAdd("MathLoadFuncs","RxMathFn","MathLoadFuncs"); rc = MathLoadFuncs(); rc = MathLoadFuncs("Quiet") VRexx/ VArc [id] [x] [y] [radius] [angle1] [angle2] VBackColor VBackColor [id] [color]h VCheckBox VCheckBox [titel] [stem] [output] [pushbuttons] VClearWindow VClearWindow [id] VCloseWindow VCloseWindow [id] VColorBox VColorBox [stem]; VDialogPos VDialogPos [x] [y] VDraw VDraw [id] [drawtype] [Xstem] [Ystem] [Num] VDrawParms VDrawParms [id] [drawtyp] [linetyp] [filltyp] VExit CLEANUP: call VExitH VFileBox VFileBox [titel] [template] [stem]x VFontBox VFontBox [stem] VForeColor VForeColor [id] [color] VGetVersion VGetVersion VInit call RXFUNCADD 'VInit', 'VREXX', 'VINIT' initcode = VInit() if initcode = 'ERROR' then signal CLEANUP signal on failure name CLEANUP signal on halt name CLEANUP signal on syntax name CLEANUP VInputBox VInputBox [titel] [Stem] [widith] [pushbuttons]e VListBox VListBox [titel] [Stem] [widith] [hight] [pushbuttons] VMsgBox VMsgBox [titel] [stem] [pushbuttons] VMultBox VMultBox [titel] [Prompt] [widith] [hide] [return] [pushbuttons]P VOpenWindow VOpenWindow [titel] [color] [stem] VRadioBox VRadioBox [titel] [stem] [pushbuttons] VResize VResize [id] [stem] VSay [id] [X] [Y] [text]= VSetFont VSetFont [id] [font] [hight]u VSetTitle VSetTitle [id] [titel] VTableBox VTableBox [titel] [stem] [selection] [widith] [hight] [pushbuttons] RexxUtil/Screen & Keyboard SysCls call SysClsl SysCurPos SysCurPos(line, column) SysCurState call SysCurState state SysGetKey SysGetKey([option]) SysSleep call SysSleep secsh SysTextScreenRead SysTextScreenRead(line, column, [numeric value]) SysTextScreenSize SysTextScreenSize, RexxUtil/Object SysCopyObject SysCopyObject(Object, target)Q SysCreateShadow SysCreateShadow(Object, target) SysMoveObject SysMoveObject(Object, target) SysCreateObject SysCreateObject(class, title, path[,attributs]); SysDeregisterObjectClass SysDeregisterObjectClass(class)z SysDestroyObject SysDestroyObject(name) SysOpenObject SysOpenObject(name, Anzeige, Markierung) SysQueryClassList call SysQueryClassList stemvarg SysRegisterObjectClass SysRegisterObjectClass(class, modulname) SysSaveObject SysSaveObject(name, dAsync) SysSetIcon SysSetIcon(file, Iconfile) SysSetObjectData SysSetObjectData(name, config) Loops/Repetitive Loops Count do numeric_value FOREVER do forever From->To do I = 1 to numeric_value Statements/ ADDRESS address environment_expressionq arg [template] call [expression] [,[expression]]... do [for][control][;] drop variable_list/ exit [expression] if expression INTERPRET interpret expression ITERATE iterate [loopSymbol] LEAVE leave [loopSymbol]> NUMERIC numeric OPTIONS otions expression PARSE ARG parse arg PARSE LINEIN parse [Upper] linein [template]E PARSE PULL parse [Upper] pull [template] PARSE SOURCE parse [Upper] source [template] PARSE VALUE parse [Upper] value [expression] with [template] PARSE VAR parse var symbolB PARSE VERSION parse version PROCEDURE procedure [expose variable_list] pull [template] push [expression] QUEUE queue [expression]@ RETURN return [expression]l say [expression] SELECT select... SIGNAL signal... TRACE trace traceSetting Functions/Other ADDRESS address()h API-Functions RxFunc... arg([number[,verification]]) beep(frequency,period) BITAND bitand(string1[,[string2][,fill]])S BITOR bitor(string1[,[string2][,fill]]) BITXOR bitxor(string1[,[string2][,fill]]) CONDITION condition([information_type]) DATATYPE datatype(string[,verification_type])M date([formating_option]) DIRECTORY directory([directory]) ERRORTEXT errortext(n) ENDLOCAL endlocal() FILESPEC filespec(option,input)< QUEUED queued()g SETLOCAL setlocal() SOURCELINE sourceline([n]) SYMBOL symbol(name) time([format]) TRACE trace([definition])I VALUE value(name) XRANGE xrange([starting_char][,ending_char]) Functions/Input/Output CHARIN charin([stream_name][,[start][,length]])G CHAROUT charout([stream_name][,string][,start]])y CHARS chars([stream_name]) LINEIN linein([stream_name][,[line_to_read][,number_lines]]) LINEOUT lineout([stream_name][,[string][,position]])K LINES lines([stream_name]) STREAM stream(name [, string [,command]]) Functions/Conversion b2x(bitstring) c2d(string[,n])1 c2x(string)c d2c(numeric value[,n]) d2x(numeric value[,n]) x2b(hex_string) x2c(hex_string) x2d(hex_string[,n])_! Functions/Arithmetic abs(numeric_value) DIGITS digits() form() FORMAT format(numeric_value[,[leading_digits][,[decimal_places]]])8 fuzz()y max(numeric value[,numeric value]...) min(numeric value[,numeric value]...) RANDOM random([lower][,[upper][,seed]]))! sign(numeric value) TRUNC trunc(numeric value[,n]) Functions/Text Processing ABBREV abbrev(information,info[,length]) CENTER/CENTRE center(string,length[,fill])N" COMPARE compare(string1,string2[,fill])}" COPIES copies(string,n) DELSTR delstr(string,n[,length]) DELWORD delword(string,n[,length])I# FORMAT format(numeric_value[,[leading-digits][,[decimal_places]]]) INSERT insert(source,target[,[n][,[length][,fill]]]) LASTPOS lastpos(looking_for,looking_in[,start]) left(string,length[,fill])@$ LENGTH length(string) OVERLAY overlay(source,target[,[n][,[lenth][,fill]]]) pos(looking_for,looking_in[,start]) REVERSE reverse(string)4% RIGHT right(string,length[,fill])l% SPACE space(string[,[n][,fill]]) STRIP strip(string[,[option][,char]]) SUBSTR substr(string,n[,[length][,fill]])$& SUBWORD subword(string,n[,length])~& TRANSLATE translate(string[,[output_table][,[input_table][fill]]]) VERIFY verify(string,alphabet[,[match][,start]]) word(string,n)&' WORDINDEX wordindex(string,n)]' WORDLENGTH wordlength(string,n) WORDPOS wordpos(sought,string[,start]) WORDS words(string)u) Functions/API-Functions RXFUNCADD rxfuncadd()N( RXFUNCDROP rxfuncdrop() RXFUNCQUERY rxfuncquery() RXQUEUE GET rxqueue("Get" newqueue) RXQUEUE SET rxqueue("Set" newqueue)3) RXQUEUE DELETE rxqueue("Delete" queue) RXQUEUE CREATE rxqueue("Create" [, queue]) Loops/Conditional Loops WHILE do while UNTIL do until Conditions/If if then don* IF with ELSE if then do; else do IF with DO-Group if then do; end; IF with ELSE and DO-Group if then do; end; else do; end; Conditions/Select SELECT select; when then ; when then ; SELECT with OTHERWISE select; when then ; when then; otherwise SELECT with DO-Group select; when then do; end; when then do; end; SELECT with OTHERWISE and DO-Group select; when then do; end; when then do; end; otherwise do; end; end;'0 RexxUtil/Filesystem SysDriveInfo SysDriveInfo(drive)2- SysDriveMap SysDriveMap([drive][,option])k- SysFileDelete SysFileDelete(file) SysFileSearch call SysFileSearch search_text, file, stemvar [,option]8. SysFileTree SysFileTree(filespec, stemvar, [option], [target_attribute],[new_attribute])v. SysGetEA SysGetEA(file, EAname, EAvar) SysIni SysIni([Inifile], program, key, value) SysMkDir SysMkDir(directory)// SysPutEA SysPutEA(file, EAname, EAvalue)c/ SysRmDir SysRmDir(directory) SysSearchPath SysSearchPath(path, file) SysSetIcon SysSetIcon(file, icon_file) SysTempFileName SysTempFileName(maske, [dummy]) RexxUtil/Other Load RexxUtil call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'; call SysLoadFuncs Deregister RexxUtil call SysDropFuncsP1 RxMessageBox RxMessageBox(text, [titel], [pushbutton],[symbol]) SysDropFuncs call SysDropFuncs SysGetMessage SysGetMessage(num, [file] [string1,...[string9]) 2 SysOS2Ver SysOS2Ver() SysWaitNamedPipe SysWaitNamedPipe(name, [time_limit])